package com.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.UserMapper;
import com.pojo.SysUser;
import com.pojo.vo.SysUserVo;
import com.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl extends ServiceImpl implements SysUserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public List<SysUserVo> getList() {
        return userMapper.getList();
    }

    @Override
    public SysUser login(String usrName, String usrPassword) {

        return userMapper.login(usrName, usrPassword);
    }
}
